
import time
from task.base.baseApi import  Base
import task.pageObject
import allure

class PageCenter(Base):
    @allure.step('点击我的地址')
    def my_address(self):
        self.base_click(task.pageObject.loc_add_my_address)

    @allure.step('点击新增新地址')
    def add_new_address(self):
        self.base_click(task.pageObject.loc_add_new_addr)
        time.sleep(2)

    @allure.step('切换frame')
    def switch_frame(self):
        self.base_switch_frame(task.pageObject.frame_add)




